package com.shangxian.giveithome.code;

public enum FeiCode implements Code {

    FEI_ERROR(false, 500, "网络拥挤,请稍后再试");

    private boolean success;

    private Integer code;

    private String message;

    FeiCode(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
